<?php
/**
 * Archivo de configuración general de site
 *
 * Para hacer una versión propia del sitio de trabajo, renombrarlo a config.php
 *
 * @package CONFIG
 * @author Alberto Pardo Saleme <apardo@gmail.com>
 * @update 5/8/2009 7:43:18 PM
 *
 * $LastChangedDate: 2008-10-09 19:07:50 -0200 (Thu, 09 Oct 2008) $
 * $Rev: 508 $
 */

/// Que no pueda ver este archivo directamente.
if (preg_match("/".basename(__FILE__)."/", $_SERVER["PHP_SELF"]))
    die("<b>Error 502:</b> Access denied.");

define('DIR_ROOT' ,         str_replace(array("/includes","\includes"), "", dirname(__FILE__)));
define('DIR_INCLUDES' ,     DIR_ROOT."/includes");
define('DIR_LIB' ,          DIR_INCLUDES ."/lib");
define('DIR_CLASSES',       DIR_INCLUDES ."/classes");
define('DIR_ADMIN',         DIR_ROOT ."/admin");
define('DIR_MODULES',       DIR_ROOT ."/modules");
define('DIR_FILE_UPLOAD',   DIR_ROOT ."/upload");
define('DIR_TMP',           DIR_ROOT ."/upload/tmp");

// LOCAL CONFIG.
if (file_exists(dirname(__FILE__)."/config.local.php")) require_once("config.local.php");

// URLS
$GLOBALS["CONF"]["url"]["js"]              = $GLOBALS["CONF"]["url"]["root"]  ."/js";
$GLOBALS["CONF"]["url"]["admin"]           = $GLOBALS["CONF"]["url"]["root"] ."/admin";
$GLOBALS["CONF"]["url"]["modules"]         = $GLOBALS["CONF"]["url"]["root"] ."/modules";
$GLOBALS["CONF"]["url"]["dir_file_upload"] = $GLOBALS["CONF"]["url"]["root"] ."/upload";
$GLOBALS["CONF"]["url"]["dir_file_tmp"]    = $GLOBALS["CONF"]["url"]["dir_file_upload"] ."/tmp";
$GLOBALS["CONF"]["url"]["extjs"]           = $GLOBALS["CONF"]["url"]["root"] ."/admin/js/ext";
$GLOBALS["CONF"]["url"]["campanias"]       = $GLOBALS["CONF"]["url"]["root"] ."/campanias";

// 3rd party lib
$GLOBALS["CONF"]["url"]["lib"]             = $GLOBALS["CONF"]["url"]["root"] .'/includes/lib';
$GLOBALS["CONF"]["recaptcha"]["domain_name"] = "adverit.com";
$GLOBALS["CONF"]["recaptcha"]["public_key"] = "6LeCHb0SAAAAAPWl7az87f5NOe8_41CPCIMalNPu";
$GLOBALS["CONF"]["recaptcha"]["private_key"] = "6LeCHb0SAAAAAEA_WweP3M6MVGYlVmOX0BGZ88UI";

// Options for the tinyMCE
$GLOBALS["CONF"]["admin"]["tinyMCE"] = array('bold', 'italic', 'underline', 'link', 'unlink', 'bullist', 'blockquote', 'undo');
$GLOBALS["CONF"]["front"]["tinyMCE"]['allowed_tags'] = "<strong><p><br>";

$GLOBALS["CONF"]["user"]["useExtendedPermissions"] = true;

$GLOBALS["CONF"]["user"]["access_level"] = array(1=>"admin",
                                                                             2=>"manager",
                                                                             3=>"webuser");
// Site definitions
$GLOBALS["website"]["name"] = "Revoluci&oacute;n Pelota Admin";

// Website languages
$GLOBALS["CONF"]["lang"] = array("English" =>"en",
                                 "Español" =>"es",
                                 "default" =>"es");

//Others
$GLOBALS["CONF"]["date_format"]      = 'd/m/Y'; // follows php standars.
$GLOBALS["CONF"]["date_time_format"] = 'd/m/Y h:i:s'; // follows php standars.

?>
